package com.neuedu.helloworld.controller;//package com.neuedu.helloworld.controller;


import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/second")
public class SecondController {



    @RequestMapping("/")
    public String test(){

        return "欢迎访问";

    }


    @RequestMapping("/cal2")
    public String cal(int numa, int numb){

        return String.valueOf( numa / numb);

    }




}
